using System.Web.Mvc;
using AutoMapper;
using Common.Enumerations;
using WebApp.Services;

namespace WebApp.Controllers
{
    public class CoreConfigurationController : SmartController
    {
        private readonly IUserSession _userSession;

        public CoreConfigurationController(IUserSession userSession, IMappingEngine mappingEngine) : base(userSession, mappingEngine)
        {
            _userSession = userSession;
        }

        [Authorize]
        public ViewResult Index()
        {
            EnsureCurrentUserHas(Permission.AccessAdminMenu);
            return View();
        }       


        //TODO : BUS.SEND() Download AttendenceReport. This is temporary location for report
        [HttpPost]
        public ActionResult Download()
        {
           return Json(true);
        }
    }
}
